// 系统管理路由
import Layout from "../views/layout/Layout";
export const umsRoute = [
  {
    path: "/ums",
    component: Layout,
    redirect: "/ums/admin",
    name: "ums",
    meta: { title: "权限", icon: "ums" },
    children: [
      {
        path: "dept",
        name: "dept",
        component: () => import("@/views/ums/dept/index"),
        meta: { title: "部门列表", icon: "ums-dept" }
      },
      {
        path: "dict",
        name: "dict",
        component: () => import("@/views/ums/dict/index"),
        meta: { title: "数据字典", icon: "ums-dept" }
      },
      {
        path: "dictData",
        name: "dictData",
        component: () => import("@/views/ums/dict/data"),
        meta: { title: "字典数据" },
        hidden: true
      },
      {
        path: "admin",
        name: "admin",
        component: () => import("@/views/ums/admin/index"),
        meta: { title: "用户列表", icon: "ums-admin" }
      },
      {
        path: "role",
        name: "role",
        component: () => import("@/views/ums/role/index"),
        meta: { title: "角色列表", icon: "ums-role" }
      },
      {
        path: "allocMenu",
        name: "allocMenu",
        component: () => import("@/views/ums/role/allocMenu"),
        meta: { title: "分配菜单" },
        hidden: true
      },
      {
        path: "allocResource",
        name: "allocResource",
        component: () => import("@/views/ums/role/allocResource"),
        meta: { title: "分配资源" },
        hidden: true
      },
      {
        path: "menu",
        name: "menu",
        component: () => import("@/views/ums/menu/index"),
        meta: { title: "菜单列表", icon: "ums-menu" }
      },
      // {
      //   path: "addMenu",
      //   name: "addMenu",
      //   component: () => import("@/views/ums/menu/add"),
      //   meta: { title: "添加菜单" },
      //   hidden: true
      // },
      {
        path: "updateMenu",
        name: "updateMenu",
        component: () => import("@/views/ums/menu/update"),
        meta: { title: "修改菜单" },
        hidden: true
      },
      {
        path: "resource",
        name: "resource",
        component: () => import("@/views/ums/resource/index"),
        meta: { title: "资源列表", icon: "ums-resource" }
      },
      {
        path: "resourceCategory",
        name: "resourceCategory",
        component: () => import("@/views/ums/resource/categoryList"),
        meta: { title: "资源分类" },
        hidden: true
      },
      {
        path: "cityList",
        name: "cityList",
        component: () => import("@/views/ums/cityList/index"),
        meta: { title: "城市数据" }
      },
      {
        path: "industry",
        name: "industry",
        component: () => import("@/views/ums/industry/index"),
        meta: { title: "行业数据" },
        hidden: true
      },
      {
        path: "taxlist",
        name: "taxlist",
        component: () => import("@/views/article/index"),
        meta: { title: "税务数据" },
        hidden: true
      },
      {
        path: "conditionManagement",
        name: "conditionManagement",
        component: () => import("@/views/ums/conditionManagement/index"),
        meta: { title: "条件管理" },
        hidden: true
      },
      {
        path: "config",
        name: "config",
        component: () => import("@/views/ums/config/index"),
        meta: { title: "参数设置" },
        hidden: true
      },
      {
        path: 'bankConfig',
        name: 'bankConfig',
        component: () => import('@/views/ums/bankConfig/index'),
        meta: { title: '银行配置' },
        hidden: true
      },
      {
        path: 'regionConfig',
        name: 'regionConfig',
        component: () => import('@/views/ums/regionConfig/index'),
        meta: { title: '地区维护' },
        hidden: true
      },
      {
        path: 'payConfig',
        name: 'payConfig',
        component: () => import('@/views/ums/payConfig/index'),
        meta: { title: '支付配置' },
        hidden: true
      }
    ]
  }
];
